var L_Dialog_ErrorMessage = "An error has occured in this dialog.";
var L_ErrorNumber_Text = "Error: ";
var str = L_Dialog_ErrorMessage + "\n\n"
+ L_ErrorNumber_Text + line + "\n"
+ message;
alert (str);
window.close();
return true;
}
function BodyOnKeyPress(nCode)
{
if (nCode == 27) //ESC
{
window.close();
return;
}
if (nCode == 116) //F5
{
//eat it
event.returnValue = false;
}
// alert(nCode);
}
function ConfirmSort()
{
var L_ConfirmResetSortOrder_Message = "This will return all of your favorites to alphabetical order.\n\nAre you sure you want to do this?"; //displayed in ok/cancel dialog when pressing the Sort... button
if (confirm(L_ConfirmResetSortOrder_Message))
nsc.ResetSort();
}
function OnSelectionChange(cItems, hItem, strName, strUrl, cVisits, strDate, fAvailableOffline)
{
var L_MakeAvailableOffline_Text = "Make available <U>o</U>ffline"; //Make available offline
var L_MakeAvailableOfflineAccesskey_Text = "o"; //this must be the single character that is underlined above